                    <div class="module">
                        <div class="moduleFrame">
                            <div class="moduleHeader">
                                <span class="moduleIcon"><img src="<?php echo JS_PATH;?>/phuongmaiadv/g/icon.gif" alt="icon"/></span>
                                <div class="moduleTitle">
<?php
$allItems = $this->allItems;
$currentPage = $this->currentPage;
if ($currentPage) {
    // check exists parent
    if ($currentPage['all_parent']) {
        $allParent = explode(',', $currentPage['all_parent']);
        if (isset($allParent[0])) {
            $allCategory = $this->allCategory;
            foreach($allParent as $parentID):
                $parent = $allCategory[$parentID];
                // check to ignore root
                if ($parent['left'] != 1) {
                ?>
                    <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $parent['category_id']?>"><?php echo $parent['admin_title'];?></a> >> 
                <?php
                }
            endforeach;
        }
        ?>
        <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $currentPage['category_id']?>"><?php echo $currentPage['admin_title'];?></a>
        <?php
    }
}
?>

                                </div>
                            </div>
                            <div class="moduleContent" style="height:100%;">

<?php

function callback($buffer) {
    return preg_replace('/\s+/', ' ', $buffer);
}
$item = $this->item;

if ($item) {
?>
<div>
                                    <?php
                                    if ($item['item_image']) {
                                    $path = pathinfo($item['item_image'], PATHINFO_DIRNAME);
                                    $fileName = pathinfo($item['item_image'], PATHINFO_BASENAME);
                                    ?>
                                    <img src="<?=ImageUtil::getImage($path,$fileName,200,200, 100,true)?>" class="border" align="left" style="margin:5px 10px;"></img>
                                    <?php
                                    }
                                    ?>
                                        <h3><?php echo $item->item_title;?></h3>
                                        <p><?php echo $item->item_short_description;?></p>
                                        <p><?php echo $item->item_description;?></p>
                                    <div style="clear:both;"></div>
</div>
<?php
} // if has item
?>

                            </div>
                        </div>
                    </div>
